# -*- coding: latin-1 -*-

from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import *
from empresa.settings import MEDIA_ROOT
from tjango.ajax_select.fields import *

from django.contrib.admin import models as admin_models
from django.core.paginator import Paginator

from datetime import *
from django import forms as forms
from django.db.models import Q

from tjango.listreport.report import *

class Cuotas_a_cobrar(Report):

	def select(self):
		return F('', items= [
				F('deudor'),
				F('saldo'),
				])
				
	def query(self,form):
		return Cuenta_corriente.objects.all()
			
	def condition(self, form, nivel, obj):
		return obj.saldo()<> 0


